massage = "The age of the user is:"
while True:
    massage_1 = input(massage)
    massage_2 = int(massage_1)
    if massage_2 <= 3 and massage_2 >= 0:
        print("Free of charge.")
    elif massage_2 > 3 and massage_2 <= 12:
        print("It takes ten dollars.")
    elif massage_2 > 12 and massage_2 < 120:
        print("It takes fifteen dollars.")
    else:
        print("Possible input error.")
        break